package com.admin.controller;

import com.admin.service.UserService;
import com.four.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/user")
public class UserController {
    @Autowired
    private UserService userService;
    /**
     * 手机号密码登录
     */
    @PostMapping("/login")
    public R login(@RequestParam("userName")String userName,@RequestParam("userPwd")String userPwd){
        return userService.login(userName,userPwd);
    }
}
